package uk.ac.sanger.www.WTSISearchService;

public class WTSISearchServiceProxy implements uk.ac.sanger.www.WTSISearchService.WTSISearchService_PortType {
  private String _endpoint = null;
  private uk.ac.sanger.www.WTSISearchService.WTSISearchService_PortType wTSISearchService_PortType = null;
  
  public WTSISearchServiceProxy() {
    _initWTSISearchServiceProxy();
  }
  
  public WTSISearchServiceProxy(String endpoint) {
    _endpoint = endpoint;
    _initWTSISearchServiceProxy();
  }
  
  private void _initWTSISearchServiceProxy() {
    try {
      wTSISearchService_PortType = (new uk.ac.sanger.www.WTSISearchService.WTSISearchService_ServiceLocator()).getWTSISearchServiceHttpPort();
      if (wTSISearchService_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)wTSISearchService_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)wTSISearchService_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (wTSISearchService_PortType != null)
      ((javax.xml.rpc.Stub)wTSISearchService_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public uk.ac.sanger.www.WTSISearchService.WTSISearchService_PortType getWTSISearchService_PortType() {
    if (wTSISearchService_PortType == null)
      _initWTSISearchServiceProxy();
    return wTSISearchService_PortType;
  }
  
  public java.lang.String[] listDomains() throws java.rmi.RemoteException{
    if (wTSISearchService_PortType == null)
      _initWTSISearchServiceProxy();
    return wTSISearchService_PortType.listDomains();
  }
  
  public java.lang.String[] getDomainsReferencedInDomain(java.lang.String domain) throws java.rmi.RemoteException{
    if (wTSISearchService_PortType == null)
      _initWTSISearchServiceProxy();
    return wTSISearchService_PortType.getDomainsReferencedInDomain(domain);
  }
  
  public uk.ac.ebi.ebinocle.webservice.EntryReferences[] getReferencedEntriesSet(java.lang.String domain, java.lang.String[] entries, java.lang.String referencedDomain, java.lang.String[] fields) throws java.rmi.RemoteException{
    if (wTSISearchService_PortType == null)
      _initWTSISearchServiceProxy();
    return wTSISearchService_PortType.getReferencedEntriesSet(domain, entries, referencedDomain, fields);
  }
  
  public uk.ac.ebi.ebinocle.webservice.FieldInfo[] listFieldsInformation(java.lang.String domain) throws java.rmi.RemoteException{
    if (wTSISearchService_PortType == null)
      _initWTSISearchServiceProxy();
    return wTSISearchService_PortType.listFieldsInformation(domain);
  }
  
  public java.lang.String[][] getResults(java.lang.String domain, java.lang.String query, java.lang.String[] fields, int start, int size) throws java.rmi.RemoteException{
    if (wTSISearchService_PortType == null)
      _initWTSISearchServiceProxy();
    return wTSISearchService_PortType.getResults(domain, query, fields, start, size);
  }
  
  public java.lang.String[] getAllResultsIds(java.lang.String domain, java.lang.String query) throws java.rmi.RemoteException{
    if (wTSISearchService_PortType == null)
      _initWTSISearchServiceProxy();
    return wTSISearchService_PortType.getAllResultsIds(domain, query);
  }
  
  public java.lang.String[] getResultsIds(java.lang.String domain, java.lang.String query, int start, int size) throws java.rmi.RemoteException{
    if (wTSISearchService_PortType == null)
      _initWTSISearchServiceProxy();
    return wTSISearchService_PortType.getResultsIds(domain, query, start, size);
  }
  
  public java.lang.String[] listAdditionalReferenceFields(java.lang.String domain) throws java.rmi.RemoteException{
    if (wTSISearchService_PortType == null)
      _initWTSISearchServiceProxy();
    return wTSISearchService_PortType.listAdditionalReferenceFields(domain);
  }
  
  public uk.ac.ebi.ebinocle.webservice.DomainDescription getDomainsHierarchy() throws java.rmi.RemoteException{
    if (wTSISearchService_PortType == null)
      _initWTSISearchServiceProxy();
    return wTSISearchService_PortType.getDomainsHierarchy();
  }
  
  public java.lang.String[][] getReferencedEntriesFlatSet(java.lang.String domain, java.lang.String[] entries, java.lang.String referencedDomain, java.lang.String[] fields) throws java.rmi.RemoteException{
    if (wTSISearchService_PortType == null)
      _initWTSISearchServiceProxy();
    return wTSISearchService_PortType.getReferencedEntriesFlatSet(domain, entries, referencedDomain, fields);
  }
  
  public int getNumberOfResults(java.lang.String domain, java.lang.String query) throws java.rmi.RemoteException{
    if (wTSISearchService_PortType == null)
      _initWTSISearchServiceProxy();
    return wTSISearchService_PortType.getNumberOfResults(domain, query);
  }
  
  public java.lang.String[][] getEntriesFieldUrls(java.lang.String domain, java.lang.String[] entries, java.lang.String[] fields) throws java.rmi.RemoteException{
    if (wTSISearchService_PortType == null)
      _initWTSISearchServiceProxy();
    return wTSISearchService_PortType.getEntriesFieldUrls(domain, entries, fields);
  }
  
  public java.lang.String[] getDomainsReferencedInEntry(java.lang.String domain, java.lang.String entry) throws java.rmi.RemoteException{
    if (wTSISearchService_PortType == null)
      _initWTSISearchServiceProxy();
    return wTSISearchService_PortType.getDomainsReferencedInEntry(domain, entry);
  }
  
  public java.lang.String[] getEntry(java.lang.String domain, java.lang.String entry, java.lang.String[] fields) throws java.rmi.RemoteException{
    if (wTSISearchService_PortType == null)
      _initWTSISearchServiceProxy();
    return wTSISearchService_PortType.getEntry(domain, entry, fields);
  }
  
  public uk.ac.ebi.ebinocle.webservice.DomainResult getDetailledNumberOfResults(java.lang.String domain, java.lang.String query, boolean flat) throws java.rmi.RemoteException{
    if (wTSISearchService_PortType == null)
      _initWTSISearchServiceProxy();
    return wTSISearchService_PortType.getDetailledNumberOfResults(domain, query, flat);
  }
  
  public java.lang.String[] getEntryFieldUrls(java.lang.String domain, java.lang.String entry, java.lang.String[] fields) throws java.rmi.RemoteException{
    if (wTSISearchService_PortType == null)
      _initWTSISearchServiceProxy();
    return wTSISearchService_PortType.getEntryFieldUrls(domain, entry, fields);
  }
  
  public java.lang.String[] listFields(java.lang.String domain) throws java.rmi.RemoteException{
    if (wTSISearchService_PortType == null)
      _initWTSISearchServiceProxy();
    return wTSISearchService_PortType.listFields(domain);
  }
  
  public java.lang.String[][] getEntries(java.lang.String domain, java.lang.String[] entries, java.lang.String[] fields) throws java.rmi.RemoteException{
    if (wTSISearchService_PortType == null)
      _initWTSISearchServiceProxy();
    return wTSISearchService_PortType.getEntries(domain, entries, fields);
  }
  
  public java.lang.String[] getReferencedEntries(java.lang.String domain, java.lang.String entry, java.lang.String referencedDomain) throws java.rmi.RemoteException{
    if (wTSISearchService_PortType == null)
      _initWTSISearchServiceProxy();
    return wTSISearchService_PortType.getReferencedEntries(domain, entry, referencedDomain);
  }
  
  
}